from django.conf.urls import patterns, url
from blog.views import PostListView, PostDetailView, CommentDetailView

from blog.models import Post
from django.contrib.comments import Comment
from django.contrib.sitemaps import GenericSitemap



urlpatterns = patterns('',
    url(r'^$', PostListView.as_view(), name='main_page'),
    url(r'^post/(?P<pk>\d+)/$', PostDetailView.as_view(), name='post_view'),
    url(r'^page/(?P<page>\d+)/$', PostListView.as_view(), name='page_view'),
    url(r'^comment/(?P<pk>\d+)/$', CommentDetailView.as_view(), name='comment_view'),
    url(r'^notif/$', 'blog.views.notification_manager', name='notification_manager'),
)

